/*
 * @Descripttion: 
 * @version: 
 * @Author: Miller Zhou
 * @Date: 2021-02-18 13:51:27
 * @LastEditors: Miller Zhou
 * @LastEditTime: 2021-02-20 15:40:49
 */
#include "Zspi.h"


#ifdef mcu_stm32f1_hal
#include "main.h"
extern SPI_HandleTypeDef hspi1;
//写入数据
void SPI_Transmit(unsigned char *data, unsigned int len)
{
    HAL_SPI_Transmit(&hspi1, data, len, 100);
}
void SPI_Receive(unsigned char *data, unsigned int len)
{
    HAL_SPI_Receive(&hspi1, data, len, 100);
}
#endif